<template>
  <div class="container">
    <data-view
      propViewKey="dept_apply"
      propViewForm="dept/apply-demand/detail.vue"
      :propFlowKey="propFlowKey"
      :propParentPage="_self"
      :propShowToolBar="true"
      @view-ready="viewReady"
      @after-load="afterLoad"
      :propParam="getPropParam()"
      ref="dataview"
      :propIsTdesign="true"
    />
  </div>
</template>

<script>

export default {
  name: 'apply',
  data() {
    return {
    }
  },
  props: ['propFlowKey', 'propParameter'],
  methods: {
    viewReady() {
      this.$refs.dataview.formOpsg = this.utils.getDeptBudgetMsg()
    },
    afterLoad() {
      this.utils.getDeptBudget(this, () => {
        this.$refs.dataview.formOpsg = this.utils.getDeptBudgetMsg()
      })
    },
    getPropParam() {
      return {matrBaseType: this.utils.getMtrBaseType(this)}
    }
  },
  computed: {
    cpChildViewQueryWrapper() {
      return this.$newWrapper().eq('apply_type', this.utils.getMtrBaseType(this))
    }
  },
  components: {

  }
}
</script>

<style lang="scss" scoped>
  .container {
    height: 100%;
    background-color: #fff;
  }
</style>
